package br.com.cinesystem.entity;

import java.util.List;

public class Cinema{
    private Integer idCinema;
    private String razaoSocial;
    private String cnpj;
    private String telefone;
    private int situacao;
    private List<Sala> salaList;
    private List<Cliente> clienteList;
    private Endereco endereco;

    public Cinema() {
    }

    public Cinema(Integer idCinema) {
        this.idCinema = idCinema;
    }

    public Cinema(Integer idCinema, String razaoSocial, String cnpj, int situacao, String telefone, Endereco endereco) {
        this.idCinema = idCinema;
        this.razaoSocial = razaoSocial;
        this.cnpj = cnpj;
        this.situacao = situacao;
        this.telefone =  telefone;
        this.endereco = endereco;
    }

    public Cinema(Integer idCinema, String razaoSocial, String cnpj, String telefone, Endereco endereco) {
        this.idCinema = idCinema;
        this.razaoSocial = razaoSocial;
        this.cnpj = cnpj;
        this.telefone = telefone;
        this.endereco = endereco;
    }


    public Cinema(String razaoSocial, String cnpj, String telefone) {
        this.razaoSocial = razaoSocial;
        this.cnpj = cnpj;
        this.telefone = telefone;
    }

    public Cinema(Integer idCinema, String razaoSocial) {
        this.idCinema = idCinema;
        this.razaoSocial = razaoSocial;
    }
    
    public Integer getIdCinema() {
        return idCinema;
    }

    public void setIdCinema(Integer idCinema) {
        this.idCinema = idCinema;
    }

    public String getRazaoSocial() {
        return razaoSocial;
    }

    public void setRazaoSocial(String razaoSocial) {
        this.razaoSocial = razaoSocial;
    }

    public String getCnpj() {
        return cnpj;
    }

    public void setCnpj(String cnpj) {
        this.cnpj = cnpj;
    }

    public String getTelefone() {
        return telefone;
    }

    public void setTelefone(String telefone) {
        this.telefone = telefone;
    }

    public int getSituacao() {
        return situacao;
    }

    public void setSituacao(int situacao) {
        this.situacao = situacao;
    }

    public List<Sala> getSalaList() {
        return salaList;
    }

    public void setSalaList(List<Sala> salaList) {
        this.salaList = salaList;
    }

    public List<Cliente> getClienteList() {
        return clienteList;
    }

    public void setClienteList(List<Cliente> clienteList) {
        this.clienteList = clienteList;
    }

    public Endereco getEndereco() {
        return endereco;
    }

    public void setEndereco(Endereco endereco) {
        this.endereco = endereco;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idCinema != null ? idCinema.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Cinema)) {
            return false;
        }
        Cinema other = (Cinema) object;
        if ((this.idCinema == null && other.idCinema != null) || (this.idCinema != null && !this.idCinema.equals(other.idCinema))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.Cinema[idCinema=" + idCinema + "]";
    }

}
